//
//  ViewController.swift
//  navigation
//
//  Created by tuwan on 2018/1/26.
//  Copyright © 2018年 czmc .Inc. All rights reserved.
//

import UIKit

class ViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        createChildItem(name: "home")
        createChildItem(name:"dev")
        createChildItem(name:"me")
    }
    
    func createChildItem(name:String){
        let child = UIStoryboard.init(name: name, bundle: nil).instantiateInitialViewController()
        addChildViewController(child!)
    }
    
}

